//
//  TTCoreCompatibility.m
//  Tint
//
//  Created by Kevin Wu on 2/22/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import "TTCoreCompatibility.h"



#pragma mark - Hardware platform

BOOL TTIsPad(void) {
    return ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad);
}

BOOL TTIsPod(void) {
    return [[UIDevice currentDevice].model hasPrefix:@"iPod"];
}

BOOL TTIsPhone(void) {
    return [[UIDevice currentDevice].model hasPrefix:@"iPhone"];
}


#pragma mark - Software platform

CGFloat TTOSVersion(void) {
    return [[[[UIDevice class] currentDevice] systemVersion] floatValue];
}
